package com.tuanbiao.ui.log;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.hzjq.data.hzjq.entity.LogEntity;
import com.tuanbiao.R;

/**
 * @author abiao
 * @since 2022/4/13 14:58
 */
public class LogOperateAdapter extends BaseQuickAdapter<LogEntity, BaseViewHolder> {
    public LogOperateAdapter() {
        super(R.layout.item_operation_log);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, LogEntity entity) {
        holder.setText(R.id.tv_time, entity.getTime())
                .setText(R.id.tv_action, entity.getAction());
    }
}
